package com.example.mailbackend.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 订单表(Order)表实体类
 *
 * @author makejava
 * @since 2024-01-17 19:23:06
 */
@SuppressWarnings("serial")
public class Order extends Model<Order> {
    //订单id
    private Integer id;
    //用户id
    private Integer userId;
    //地址id
    private Integer addressId;
    //金额总数
    private Double sum;
    //是否发货，1表示已发货，0表示未发货
    private Integer deliver;
    //是否退货，1表示完成退货，0表示未退货
    private Integer refund;
    //创建时间
    private Date createdTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Double getSum() {
        return sum;
    }

    public void setSum(Double sum) {
        this.sum = sum;
    }

    public Integer getDeliver() {
        return deliver;
    }

    public void setDeliver(Integer deliver) {
        this.deliver = deliver;
    }

    public Integer getRefund() {
        return refund;
    }

    public void setRefund(Integer refund) {
        this.refund = refund;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }


}

